import request from '@/utils/request'
import { contractApiUrl } from '@/api/config'
const api = contractApiUrl + '/risk_review'

// 总包合同—风险复核

// 新增 + 编辑
export function create(data) {
  return request.post(`${api}/createRiskReview`, data)
}

// 详情
export function detail(params) {
  return request({
    url: `${api}/queryByGenId`,
    method: 'get',
    params
  })
}
// 审批流程详情
export function processDetail(params) {
  return request({
    url: `${api}/queryById`,
    method: 'get',
    params
  })
}

// 风险复核多选模板
export function dangerMudel(data) {
  return request.get(`${api}/tem`, data)
}

// 枚举值
export function getLabels(data) {
  return request.post(`${contractApiUrl}/contract/typeslabel`,data)
}